package com.zbkj.service.service;

import com.zbkj.common.model.order.OrderDetail;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.model.agent.OrderStoreRelation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.request.OrderStoreRelationSaveRequest;
import com.zbkj.common.request.OrderStoreRelationSearchRequest;
import com.zbkj.common.response.OrderStoreRelationPageDataResponse;
import com.zbkj.common.response.OrderStoreRelationDetailResponse;

import java.util.List;
/**
* @author Caiyc
* @description OrderStoreRelationService 接口
* @date 2025-07-28
*/
public interface OrderStoreRelationService extends IService<OrderStoreRelation> {

    Boolean create(OrderStoreRelationSaveRequest orderStoreRelationSaveRequest);

    /**
     * 分页查询订单店铺关系表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<OrderStoreRelationPageDataResponse> getList(OrderStoreRelationSearchRequest request, PageParamRequest pageParamRequest);

    /**
    * 修改订单店铺关系表
    * @param orderStoreRelationRequest
    * @return
    */
    boolean update(OrderStoreRelationSaveRequest orderStoreRelationRequest);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    OrderStoreRelationDetailResponse getDetails(Integer id);

    void updateOrderStoreRelation(String orderNo, Integer merId, Integer uid, List<OrderDetail> orderDetailList);
}